<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "guide_price".
 *
 * @property string $gid
 * @property string $langcode
 * @property string $price
 * @property string $update_at
 */
class GuidePrice extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'guide_price';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['gid', 'langcode'], 'required'],
            [['gid'], 'integer'],
            [['price'], 'number'],
            [['update_at'], 'safe'],
            [['langcode'], 'string', 'max' => 12],
            [['gid', 'langcode'], 'unique', 'targetAttribute' => ['gid', 'langcode']],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'gid' => Yii::t('app', 'Gid'),
            'langcode' => Yii::t('app', 'Langcode'),
            'price' => Yii::t('app', 'Price'),
            'update_at' => Yii::t('app', 'Update At'),
        ];
    }
}
